.class Lcom/netease/newsreader/activity/SettingsActivity$4;
.super Ljava/lang/Thread;
.source "SettingsActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/SettingsActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/SettingsActivity;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/SettingsActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/SettingsActivity$4;->this$0:Lcom/netease/newsreader/activity/SettingsActivity;

    .line 78
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 10

    .prologue
    .line 81
    :try_start_0
    new-instance v1, Ljava/io/File;

    sget-object v6, Lcom/netease/newsreader/util/FileUtils;->FileTempDir:Ljava/lang/String;

    invoke-direct {v1, v6}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 82
    .local v1, f:Ljava/io/File;
    new-instance v2, Ljava/io/File;

    sget-object v6, Lcom/netease/newsreader/util/PicUtil;->phototempDir:Ljava/lang/String;

    invoke-direct {v2, v6}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 83
    .local v2, f2:Ljava/io/File;
    invoke-static {}, Lcom/netease/newsreader/util/FileUtils;->isSDCardMounted()Z

    move-result v6

    if-nez v6, :cond_0

    invoke-static {}, Lcom/netease/newsreader/util/FileUtils;->isSDCardMountedReadOnly()Z

    move-result v6

    if-eqz v6, :cond_1

    .line 84
    :cond_0
    invoke-static {v1}, Lcom/netease/newsreader/util/FileUtils;->getFileSize(Ljava/io/File;)J

    move-result-wide v6

    invoke-static {v2}, Lcom/netease/newsreader/util/FileUtils;->getFileSize(Ljava/io/File;)J

    move-result-wide v8

    add-long/2addr v6, v8

    iget-object v8, p0, Lcom/netease/newsreader/activity/SettingsActivity$4;->this$0:Lcom/netease/newsreader/activity/SettingsActivity;

    invoke-virtual {v8}, Lcom/netease/newsreader/activity/SettingsActivity;->getCacheDir()Ljava/io/File;

    move-result-object v8

    invoke-static {v8}, Lcom/netease/newsreader/util/FileUtils;->getFileSize(Ljava/io/File;)J

    move-result-wide v8

    add-long v4, v6, v8

    .line 85
    .local v4, size:J
    new-instance v3, Landroid/os/Message;

    invoke-direct {v3}, Landroid/os/Message;-><init>()V

    .line 86
    .local v3, msg:Landroid/os/Message;
    const/4 v6, 0x2

    iput v6, v3, Landroid/os/Message;->what:I

    .line 87
    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v6

    iput-object v6, v3, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 88
    iget-object v6, p0, Lcom/netease/newsreader/activity/SettingsActivity$4;->this$0:Lcom/netease/newsreader/activity/SettingsActivity;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SettingsActivity;->access$4(Lcom/netease/newsreader/activity/SettingsActivity;)Landroid/os/Handler;

    move-result-object v6

    invoke-virtual {v6, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 100
    .end local v1           #f:Ljava/io/File;
    .end local v2           #f2:Ljava/io/File;
    .end local v3           #msg:Landroid/os/Message;
    .end local v4           #size:J
    :goto_0
    return-void

    .line 90
    .restart local v1       #f:Ljava/io/File;
    .restart local v2       #f2:Ljava/io/File;
    :cond_1
    new-instance v3, Landroid/os/Message;

    invoke-direct {v3}, Landroid/os/Message;-><init>()V

    .line 91
    .restart local v3       #msg:Landroid/os/Message;
    const/4 v6, 0x2

    iput v6, v3, Landroid/os/Message;->what:I

    .line 92
    const/4 v6, 0x0

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    iput-object v6, v3, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 93
    iget-object v6, p0, Lcom/netease/newsreader/activity/SettingsActivity$4;->this$0:Lcom/netease/newsreader/activity/SettingsActivity;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SettingsActivity;->access$4(Lcom/netease/newsreader/activity/SettingsActivity;)Landroid/os/Handler;

    move-result-object v6

    invoke-virtual {v6, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 96
    .end local v1           #f:Ljava/io/File;
    .end local v2           #f2:Ljava/io/File;
    .end local v3           #msg:Landroid/os/Message;
    :catch_0
    move-exception v0

    .line 98
    .local v0, e:Ljava/lang/Exception;
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method
